package com.service;

import com.entity.Order;
import com.github.pagehelper.PageInfo;
import com.vo.CartItem;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface OrderService {
    void insertOrder(Order order, Collection<CartItem> items);
    void deleteOrderById(Integer id);
    void updateOrder(Order order);
    Order selectOrderById(Integer id);
    Order selectOrderByName(String name);
    List<Order> selectOrder();
    PageInfo<Order> selectPageOrder(@Param("pageNum")Integer pageNum,
                                    @Param("pageSize")Integer pageSize);
}
